import http from '@/utils/http';

export const fileUrl = process.env.VUE_APP_FILE_URL;

// 预约服务
export const saveReservation = (params) => {
	return http.post(`/app/service/saveReservation`, params)
}

// 我的预约
export const myReservation = (params) => {
	return http.get(`/app/reservation/my`, params)
}

// 我的预约详情
export const getMyReservationDetail = (params) => {
	return http.get(`/app/reservation/myDetail`, params)
}

// 预约完成
export const finishReservation = (params) => {
	return http.get(`/app/reservation/finish`, params)
}

// 预约取消
export const cancelReservation = (params) => {
	return http.get(`/app/reservation/cancel`, params)
}